package com.gusha.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name="sys_ticket_type")
@NamedQuery(name="SysTicketType.findAll", query="SELECT s FROM SysTicketType s")
@DynamicInsert
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysTicketType implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private BigInteger id;//id
	
	@Column(name="ticket_type")
	private String ticketType;//票名称
	
	@Column(name="scenic_name")
	private String scenicName;//景点名称
	
	@Column(name="ticket_info")
	private String ticketInfo;//门票信息
	
	@Column(name="address")
	private String address;//地址
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="close_time")
	private Date closeTime;//截止时间
	
	@Column(name="ticket_price")
	private BigDecimal ticketPrice;//票价
	
	@Column(name="ticket_unit")
	private String ticketUnit;//出票单位
	
	@Column(name="contact_num")
	private String contactNum;//联系号码
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="add_time")
	private Date addTime;//添加时间
	
	@Column(name="add_name")
	private String addName;//添加人
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time")
	private Date updateTime;//更新时间
	
	@Column(name="update_name")
	private String updateName;//更新人
	
	@Column(name="out_ticket")
	private BigInteger outTicket;//出票类型 1现购 2预购
	
	@Column(name="ticket_img")
	private String ticketImg;//图片
	
	@Column(name="is_delete")
	private BigInteger isDelete;//0未删1已删
	
	

	public BigInteger getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(BigInteger isDelete) {
		this.isDelete = isDelete;
	}

	public String getTicketImg() {
		return ticketImg;
	}

	public void setTicketImg(String ticketImg) {
		this.ticketImg = ticketImg;
	}

	public BigInteger getId() {
		return id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}

	public String getTicketType() {
		return ticketType;
	}

	public void setTicketType(String ticketType) {
		this.ticketType = ticketType;
	}

	public String getScenicName() {
		return scenicName;
	}

	public void setScenicName(String scenicName) {
		this.scenicName = scenicName;
	}

	public String getTicketInfo() {
		return ticketInfo;
	}

	public void setTicketInfo(String ticketInfo) {
		this.ticketInfo = ticketInfo;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getCloseTime() {
		return closeTime;
	}

	public void setCloseTime(Date closeTime) {
		this.closeTime = closeTime;
	}

	public BigDecimal getTicketPrice() {
		return ticketPrice;
	}

	public void setTicketPrice(BigDecimal ticketPrice) {
		this.ticketPrice = ticketPrice;
	}

	public String getTicketUnit() {
		return ticketUnit;
	}

	public void setTicketUnit(String ticketUnit) {
		this.ticketUnit = ticketUnit;
	}

	public String getContactNum() {
		return contactNum;
	}

	public void setContactNum(String contactNum) {
		this.contactNum = contactNum;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getAddName() {
		return addName;
	}

	public void setAddName(String addName) {
		this.addName = addName;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}

	public BigInteger getOutTicket() {
		return outTicket;
	}

	public void setOutTicket(BigInteger outTicket) {
		this.outTicket = outTicket;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
}
